<script>
	import { debuggerModule, installDebugger } from 'uni_modules/imengyu-IMDebuggerWindow/common/debuggerExtern.js'
	import {refreshToken} from '@/common/utils.js'
	
	export default {
		onLaunch: function() {
			console.log('App Launch')
			
			refreshToken()
			
			//这里配置是在调试模式下才开启，您也可以去掉判断，在任何时候都开启
			// if(process.env.NODE_ENV === 'development') 
			// 	installDebugger({
			// 		enableRequestInterceptor: true, //默认为false，指示是否拦截网络请求，参见下一条
			// 		showGlobalFloatWindow: true //默认为true，指定是否添加一个全局的调试按钮，点击可跳转至窗口
			// 	});
		},
		onUnhandledRejection: function(err) {
			// if(debuggerModule) debuggerModule.addAppErr(err);
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	
	/* #ifndef APP-NVUE */
	page {
		height: 100%;
		min-height: 100%;
	}
	
	body {
		height: 100%;
		min-height: 100%;
		height: 100%;
		font-family: PingFang SC, PingFang SC-Semibold;
	}
	
	.dmm-container {
		min-height: 100%;
		// display: flex;
		// flex: 1;
		font-family: PingFang SC, PingFang SC-Semibold;
	}
	/* #endif */
	
	/* #ifdef APP-NVUE */
	.dmm-container {
		display: flex;
		flex: 1 !important;
		font-family: PingFang SC, PingFang SC-Semibold;
		
		text {
			font-family: PingFang SC, PingFang SC-Medium;
			font-weight: 400;
			color: $u-main-color;
			
		}
	}
	/* #endif */
	
	.dmm-container-grey {
		background-color: $u-bg-color;
	}
	
	.text {
		font-size: 28rpx;
		line-height: 28rpx;
		color: $u-main-color;
	}
	
	.text-primary {
		color: $u-primary;
		font-size: 28rpx;
	}
	
	.text-content {
		color: $u-content-color;
	}
	
	.text-tip {
		color: $u-tips-color;
	}
	
	.text-b {
		font-weight: 700;
	}
	
	.text-sm {
		font-size: 24rpx;
	}
	
	.text-lg {
		font-size: 32rpx;
	}
	
	.row {
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	
	
	.dmm-submit-btn {
		width: 690rpx !important;
		margin: 0 30rpx 30rpx;
	}
	
	.dmm-space {
		height: 20rpx;
		background-color: transparent;
	}
	
	.u-form {
		background-color: #fff;
		border-radius: $uni-border-radius-lg;
		.u-form-item {
			padding: 0 30rpx;
			/deep/ .u-form-item__body__left__content__label {
				font-size: $uni-font-size-base;
				color: $uni-text-color-muted;
			}
		}
		.u-input {
			/deep/ .uni-input-input {
				color: $uni-text-color;
				font-size: $uni-font-size-base;
			}
		}
	}
	
	.section {
		margin: 0 30rpx 20rpx;
		padding: 0 30rpx;
		border-radius: $uni-border-radius-lg;
		background-color: #fff;
		.u-cell {
			image {
				height: 42rpx;
				width: 42rpx;
				margin-right: 14rpx;
			}
			
			/deep/ .u-cell__body {
				padding: 38rpx 0;
				
				.u-cell__label {
					font-size: 24rpx;
					border-radius: 4rpx;
					background-color: $u-bg-color;
					height: 34rpx;
					line-height: 34rpx;
					width: 98rpx;
					text-align: center;
				}
				
				.u-cell__value {
					display: flex;
					flex-direction: row;
					align-items: center;
				}
			}
			
			/deep/ text {
				font-size: 28rpx;
			}
		}
	}
	
	.space {
		height: 20rpx;
		background-color: transparentize($color: #000000, $amount: 0);
	}
	
	.btn {
		border-radius: $uni-border-radius-base;
		font-size: 28rpx;
	}
	
	.btn-primary {
		border: 1rpx solid $u-primary;
		background-color: $u-primary;
	}
	
	.btn--noborder {
		border: none;
	}
	
	.btn--plain {
		background-color: transparent;
		&.btn-primary {
			color: $u-primary;
		}
	}
	
</style>

